using System;
using System.IO;

namespace DbBuilder
{
	public static class Logger
	{
		private const string LOG_FILE_NAME = "DBEnvironmentBuilderLog";
		private static string LOG_FILE;

		public static void WriteTrace(string traceOutput)
		{
			//File.AppendAllText(LOG_FILE, string.Format("{0} : {1}\n", DateTime.Now, traceOutput));
			Console.WriteLine(String.Format("{0} : {1}\n", DateTime.Now, traceOutput));
		}

		public static void WriteTrace(string format, params object[] args)
		{
			WriteTrace(string.Format(format, args));
		}

		public static void InitLog()
		{
			// getting current folder from which the command was initially called (not the script folder)
			LOG_FILE = Path.Combine(Directory.GetCurrentDirectory(), LOG_FILE_NAME);
		}
	}
}